package com.sx.micowell.module.switchlogin

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.sx.micowell.R
import com.sx.micowell.framework.entity.AccountBean

/**
 * @Author: YY
 * @Time: 2021/9/10
 * @Describe TODO
 */
class SwitchListAdapter: BaseQuickAdapter<AccountBean, BaseViewHolder>(R.layout.item_account_list) {

    override fun convert(holder: BaseViewHolder, item: AccountBean) {
        if (holder.adapterPosition == 0) {
            holder.setVisible(R.id.tv_tab_title, true)
        } else {
            holder.setVisible(R.id.tv_tab_title, false)
        }
        holder.setText(R.id.tv_account, item.phone )
    }
}